SipClientSubscribe Method (ContactInfo, ContactInfo, Contact, String, String, Int32) |
Subscribes in order to receiving notifications about a particular event specified with the event name.
Namespace:
Independentsoft.Sip
Assembly:
Independentsoft.Sip (in Independentsoft.Sip.dll) Version: 1.0.700.17927
Syntaxpublic RequestResponse Subscribe(
ContactInfo from,
ContactInfo to,
Contact contact,
string eventName,
string allowEvents,
int expires
)
Public Function Subscribe (
from As ContactInfo,
to As ContactInfo,
contact As Contact,
eventName As String,
allowEvents As String,
expires As Integer
) As RequestResponse
Parameters
- from
- Type: Independentsoft.SipContactInfo
A ContactInfo contains address and display name of the subscriber. - to
- Type: Independentsoft.SipContactInfo
A ContactInfo contains address and name of the recipient. - contact
- Type: Independentsoft.SipContact
A Contact contains user's contact address and name. Usually the address contains user's IP address and port. - eventName
- Type: SystemString
A string contains name of the event. - allowEvents
- Type: SystemString
A string contains names of allowed events. - expires
- Type: SystemInt32
A number of seconds indicates duration of the subscription.
Return Value
Type:
RequestResponseA
RequestResponse containing sent
Request and received appropriate
Response.
See Also